<?php

namespace Zwwl2016\System;

use Illuminate\Support\ServiceProvider;
use Zwwl2016\System\CheckComments;
use Zwwl2016\System\CreateCache;
class Zwwl2016SystemServiceProvider extends ServiceProvider
{
    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('system:repo:checkcomments', function ($app) {
            return new CheckComments();
        });
		$this->app->singleton('system:repo:makecache', function ($app) {
            return new CreateCache();
        });
        $this->app->singleton('system:repo:migration', function ($app) {
            return new Migration();
        });
        $this->app->singleton('system:repo:maketest', function ($app) {
            return new CreateTest();
        });
         $this->commands([
            'system:repo:checkcomments',
			'system:repo:makecache',
            'system:repo:migration',
            'system:repo:maketest',
        ]);
    }

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
}
